package jsu.hx.lost.Model.dto;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class LostItemDTO {
    @ExcelProperty("ID")
    private Long id;

    @ExcelProperty("创建时间")
    @DateTimeFormat("yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createdAt;

    @ExcelProperty("物品名称")
    @ColumnWidth(20)
    private String itemName;

    @ExcelProperty("图片")
    private String image;

    @ExcelProperty("物品类别")
    private String itemCategory;

    @ExcelProperty("丢失地点")
    @ColumnWidth(20)
    private String lostLocation;

    @ExcelProperty("丢失时间")
    @DateTimeFormat("yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date lostTime;

    @ExcelProperty("详细描述")
    @ColumnWidth(40)
    private String detailedDescription;

    @ExcelProperty("送达地点")
    private String locate;

    @ExcelProperty("发布人")
    private String username;

    @ExcelProperty("姓名")
    private String fullName;

    @ExcelProperty("手机号")
    @ColumnWidth(15)
    private String phone;
}